package com.ruoyi.basic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 影视分级对象 level
 *
 * @author ruoyi
 * @date 2025-10-28
 */
public class Level extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 分级ID */
    private Integer levelId;

    /** 国家ID */
    @Excel(name = "国家ID")
    private Integer countryId;

    /** 分级代码 */
    @Excel(name = "分级代码")
    private String level;

    /** 中文分级 */
    @Excel(name = "中文分级")
    private String levelZh;

    /** 状态(0正常 1停用) */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 分级描述 */
    @Excel(name = "分级描述")
    private String description;

    // 关联查询字段（不对应数据库）
    private String countryName;
    private String countryCode;

    public void setLevelId(Integer levelId)
    {
        this.levelId = levelId;
    }

    public Integer getLevelId()
    {
        return levelId;
    }

    public void setCountryId(Integer countryId)
    {
        this.countryId = countryId;
    }

    public Integer getCountryId()
    {
        return countryId;
    }

    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }

    public void setLevelZh(String levelZh)
    {
        this.levelZh = levelZh;
    }

    public String getLevelZh()
    {
        return levelZh;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }

    public String getCountryName()
    {
        return countryName;
    }

    public void setCountryName(String countryName)
    {
        this.countryName = countryName;
    }

    public String getCountryCode()
    {
        return countryCode;
    }

    public void setCountryCode(String countryCode)
    {
        this.countryCode = countryCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("levelId", getLevelId())
            .append("countryId", getCountryId())
            .append("level", getLevel())
            .append("levelZh", getLevelZh())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
